import * as constants from './constants';

export const getList=(list,total)=>{
    return {
        type:constants.LIST
        ,list
        ,total
    }
};
export const setLoading=(loading)=>{
    return {
        type:constants.LOADING
        ,loading
    }
};
export const setEmptyText=(emptyText)=>{
    return {
        type:constants.NOAUTH
        ,emptyText
    }
}

export const setPagesize=(pageSize)=>{
    return {
        type:constants.PAGESIZE
        ,pageSize
    }
};
export const setPage=(page)=>{
    return {
        type:constants.PAGE
        ,page
    }
};